<!doctype html>
<html>
<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width initial-scale=1'>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <link rel="stylesheet" href="markdown.css?v=1571501404328"/>
    <title>xss拦击测试</title>
</head>
<body>
<div class="markdown-body">
    <h1>xss拦击测试</h1>
<h2>xss过滤普通post请求</h2>
<p><strong>URL:</strong> <code>http://localhost:8080/xss/text</code></p>
<p><strong>Type:</strong> <code>POST</code></p>
<p><strong>Content-Type:</strong> <code>application/json; charset=utf-8</code></p>
<p><strong>Description:</strong> xss过滤普通post请求</p>
<p><strong>Request-parameters:</strong></p>
<table>
<thead>
<tr><th>Parameter</th><th>Type</th><th>Description</th><th>Required</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>text</td><td>string</td><td>请求文本</td><td>true</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Request-example:</strong></p>
<pre><code>{
	&quot;text&quot;:&quot;vor6r5&quot;
}
</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>success</td><td>boolean</td><td>是否成功</td><td>-</td></tr>
<tr><td>message</td><td>string</td><td>响应信息</td><td>-</td></tr>
<tr><td>data</td><td>object</td><td>响应数据</td><td>-</td></tr>
<tr><td>code</td><td>string</td><td>错误代码</td><td>-</td></tr>
<tr><td>timestamp</td><td>string</td><td>响应时间</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
	&quot;success&quot;:true,
	&quot;message&quot;:&quot;success&quot;,
	&quot;data&quot;:&quot;jd2y2v&quot;,
	&quot;code&quot;:&quot;26511&quot;,
	&quot;timestamp&quot;:&quot;2019-10-20 00:10:06&quot;
}
</code></pre>
<h2>xss过滤get请求</h2>
<p><strong>URL:</strong> <code>http://localhost:8080/xss/query</code></p>
<p><strong>Type:</strong> <code>GET</code></p>
<p><strong>Content-Type:</strong> <code>application/x-www-form-urlencoded</code></p>
<p><strong>Description:</strong> xss过滤get请求</p>
<p><strong>Request-parameters:</strong></p>
<table>
<thead>
<tr><th>Parameter</th><th>Type</th><th>Description</th><th>Required</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>query</td><td>string</td><td>请求参数</td><td>true</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Request-example:</strong></p>
<pre><code>http://localhost:8080/xss/query?query=rwckfy
</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>success</td><td>boolean</td><td>是否成功</td><td>-</td></tr>
<tr><td>message</td><td>string</td><td>响应信息</td><td>-</td></tr>
<tr><td>data</td><td>object</td><td>响应数据</td><td>-</td></tr>
<tr><td>code</td><td>string</td><td>错误代码</td><td>-</td></tr>
<tr><td>timestamp</td><td>string</td><td>响应时间</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
	&quot;success&quot;:true,
	&quot;message&quot;:&quot;success&quot;,
	&quot;data&quot;:&quot;4t6cbo&quot;,
	&quot;code&quot;:&quot;26511&quot;,
	&quot;timestamp&quot;:&quot;2019-10-20 00:10:06&quot;
}
</code></pre>
<h2>xss过滤json数据</h2>
<p><strong>URL:</strong> <code>http://localhost:8080/xss/json</code></p>
<p><strong>Type:</strong> <code>POST</code></p>
<p><strong>Content-Type:</strong> <code>application/json; charset=utf-8</code></p>
<p><strong>Description:</strong> xss过滤json数据</p>
<p><strong>Request-parameters:</strong></p>
<table>
<thead>
<tr><th>Parameter</th><th>Type</th><th>Description</th><th>Required</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>name</td><td>string</td><td>姓名</td><td>false</td><td>-</td></tr>
<tr><td>age</td><td>int32</td><td>年龄</td><td>false</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Request-example:</strong></p>
<pre><code>{
	&quot;name&quot;:&quot;思远.马&quot;,
	&quot;age&quot;:35
}
</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>success</td><td>boolean</td><td>是否成功</td><td>-</td></tr>
<tr><td>message</td><td>string</td><td>响应信息</td><td>-</td></tr>
<tr><td>data</td><td>object</td><td>响应数据</td><td>-</td></tr>
<tr><td>└─name</td><td>string</td><td>姓名</td><td>-</td></tr>
<tr><td>└─age</td><td>int32</td><td>年龄</td><td>-</td></tr>
<tr><td>code</td><td>string</td><td>错误代码</td><td>-</td></tr>
<tr><td>timestamp</td><td>string</td><td>响应时间</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
	&quot;success&quot;:true,
	&quot;message&quot;:&quot;success&quot;,
	&quot;data&quot;:{
		&quot;name&quot;:&quot;思远.马&quot;,
		&quot;age&quot;:35
	},
	&quot;code&quot;:&quot;26511&quot;,
	&quot;timestamp&quot;:&quot;2019-10-20 00:10:06&quot;
}
</code></pre>

    <footer class="page-footer">
        <span class="copyright">Generated by smart-doc at 2019-10-20 00:10:04</span>
        <span class="footer-modification">Suggestions, contact, support and error reporting on
            <a href="https://gitee.com/sunyurepository/smart-doc" target="_blank">Gitee</a> or
            <a href="https://github.com/shalousun/smart-doc" target="_blank">Github</a>
        </span>
    </footer>
</div>
</body>
</html>